﻿@model MvcAtletIS.Models.Articles
@{
    ViewBag.Title = Model.Title;
    Layout = "~/Views/Shared/_Layout.cshtml";
}

    <div class="article">
        <div id="next-articles">
            @Html.DisplayFor(modelItem => modelItem.Title)
        </div>
        
        <div class="article-image">
            <img src="@Url.Content("~/Content/articles/" + Model.ImagePath)" alt="commonArticle.Name" width="300px" />
                
            @if (!string.IsNullOrEmpty(Model.ImageText))
            {
                <p>
                    @Html.Raw(Model.ImageText)
                </p>
            }
        </div>
        
        <p class="article-perex">
            @Html.DisplayFor(modelItem => modelItem.Perex)
        </p>
        
        <p class="article-text">
            <b>
                @Html.DisplayFor(modelItem => modelItem.City )
                @Model.Date.Value.ToLongDateString()
                (@Html.DisplayFor(modelItem => modelItem.Editor))
            </b>
            
            @Html.Raw(Model.Text)
        </p>

    </div>
